<!DOCTYPE html>
<html>
<head>
    <title></title>
    <script type="text/javascript" src="js/class_extend_jq.js"></script>
</head>
<body>
<script type="text/javascript">
    var Person = Class.extend({
        init: function(isDancing){
            this.dancing = isDancing;
        },
        dance: function(){
            return this.dancing;
        },
        jump:function(){
            console.log('jump!');
        }
    });

    var Ninja = Person.extend({
        init: function(){
            this._super( false );
        },
        dance: function(){
            // Call the inherited version of dance()
            return this._super();
        },
        swingSword: function(){
            return true;
        }
    });
    var p = new Person(true);
    var p2=new Ninja;
    console.log(p);
    console.log(p2.dance());
    console.log(p2.swingSword());
    console.log(p2.jump());
    //p.dance(); // => true


</script>
</body>
</html>